Class: MessageID
Constructors
constructor
• new MessageID(streamId
, streamPartition
, timestamp
, sequenceNumber
, publisherId
, msgChainId
)
Parameters
Name | Type |
---|---|
streamId | [StreamID ](../API Reference#streamid) |
streamPartition | number |
timestamp | number |
sequenceNumber | number |
publisherId | [EthereumAddress ](../API Reference#ethereumaddress) |
msgChainId | string |
Properties
msgChainId
• msgChainId: string
publisherId
• publisherId: [EthereumAddress
](../API Reference#ethereumaddress)
sequenceNumber
• sequenceNumber: number
streamId
• streamId: [StreamID
](../API Reference#streamid)
streamPartition
• streamPartition: number
timestamp
• timestamp: number
Methods
clone
▸ clone(): MessageID
Returns
getStreamPartID
▸ getStreamPartID(): [StreamPartID
](../API Reference#streampartid)
Returns
[StreamPartID
](../API Reference#streampartid)
serialize
▸ serialize(): string
Returns
string
toArray
▸ toArray(): MessageIDArray
Returns
MessageIDArray
toMessageRef
▸ toMessageRef(): MessageRef
Returns
fromArray
▸ Static
fromArray(arr
): MessageID
Parameters
Name | Type |
---|---|
arr | MessageIDArray |